/* *******************************************************
   Permite la opercion Anula si expresion = 0 
   Ric - 11/07/2019
 ********************************************************* */
 
ALTER TABLE comftodin DROP CONSTRAINT gestion_ai_comftodincheckoper;

ALTER TABLE comftodin
  ADD CONSTRAINT gestion_ai_comftodincheckoper CHECK (oper::text = 'SUM'::text OR oper::text = 'PROM'::text OR oper::text = 'MAX'::text OR oper::text = 'ANULA'::text OR oper::text = 'MIN'::text OR oper::text ~~ 'VALOR[%]'::text);


-- =====================================
SELECT aaversion('409.01');
-- =====================================
